#include <stdio.h>
#include "eventlog.h"

int main( int argc, char *argv[] )
{
	int i;
	lcm_eventlog_t* log;
	lcm_eventlog_event_t *logevent;
	log=lcm_eventlog_create("D:\\Darpa\\MIT\\mitdgc-log-sample" ,"r");
	for(i=0;i<100;i++)
	{  
		logevent=lcm_eventlog_read_next_event(log);
	    printf("channel is %s \n",logevent->channel);
    	lcm_eventlog_free_event(logevent);
	}
	lcm_eventlog_destroy(log);
	printf("hello world\n");
	getchar();
	return 0;
}